package pchi.pchicamera.functions;

import pchi.pchicamera.helpers.BitmapHelpers;
import android.graphics.Bitmap;
import android.graphics.Matrix;

public class ImageEditting {

	public static Bitmap Rotation(String imagePathResource, int WIDTH,
			int HEIGHT, Matrix matrix) {

		Bitmap resource = BitmapHelpers.decodeFile(imagePathResource, WIDTH,
				HEIGHT);

		Bitmap result;
		
		result = Bitmap.createBitmap(resource, 0, 0, WIDTH, HEIGHT, matrix,
				false);

		return result;
	}
}
